home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Printer / HP550C / FontMap_extract next >
Text File  |  1993-05-12  |  570b  |  19 lines

  1. #!/bin/sh
  2. #    Avery Wang
  3. #    email: avery@ccrma.stanford.edu
  4. #    March 29, 1993
  5.  
  6. # This is a script to extract the fonts from the NeXT's font libraries
  7. # into a format suitable for ghostscript to use
  8.  
  9. echo '/Ugly                (uglyr.gsf)    ;' >/usr/local/lib/ghostscript/Fontmap
  10.  
  11. ls /NextLibrary/Fonts |grep '.*\.font$' \
  12. | sed -e 's/\(\(.*\)\.font\)/\/\2    (\/NextLibrary\/Fonts\/\1\/\2) ;/g' \
  13. >> /usr/local/lib/ghostscript/Fontmap
  14.  
  15. ls /LocalLibrary/Fonts |grep '.*\.font$' \
  16. | sed -e 's/\(\(.*\)\.font\)/\/\2    (\/LocalLibrary\/Fonts\/\1\/\2) ;/g' \
  17. >> /usr/local/lib/ghostscript/Fontmap
  18.  
  19.